﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Finance.IBll;
using Finance.IDal;
using Finance.Dal;

namespace Finance.Bll
{
    public class OrgBll : IOrgBll
    {
        IOrgDal orgDal = new OrgDal();
        public bool Save(int id, string name)
        {
            return orgDal.Save(id, name);
        }

        public bool Delete(int id)
        {
            return orgDal.Delete(id);
        }

        public IEnumerable<Entity.OrgEntity> List(string name, int pageIndex, int pageSize, out int total)
        {
            return orgDal.List(name, pageIndex, pageSize, out total);
        }


        public IEnumerable<Entity.OrgEntity> List()
        {
            return orgDal.List();
        }
    }
}
